package com.bumblebee.server.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;

@Entity
public class Inventory extends AbstractEntity{

	@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
	@JoinColumn(name = "inventory_id")
	private Set<InventoryItem> inventory = new HashSet<InventoryItem>();

	public Set<InventoryItem> getInventory() {
		return inventory;
	}

	public void setInventory(Set<InventoryItem> inventory) {
		this.inventory = inventory;
	}
	
	
}
